<template>
	<page-body>
		<view class="page">
			<view
				class="flex flex-direction flex-wrap align-stretch justify-center benben-position-layout flex withdrnew_flex_0"
				:style="{height:(88+StatusBarRpx)+'rpx',paddingTop:StatusBarRpx+'rpx', }">
				<view class='flex flex-wrap align-stretch justify-between withdrnew_fd0_0'>
					<view class='flex flex-wrap align-center withdrnew_fd0_0_c0' @tap.stop="handleJumpDiy"
						data-type="back" data-url="1">
						<text class='fu-iconfont2  withdrnew_fd0_0_c0_c0'>&#xe794;</text>
					</view>
					<view class='flex flex-wrap align-center'>
					</view>
					<view class='flex align-center justify-end withdrnew_fd0_0_c2'>
					</view>
				</view>

			</view>
			<view :style="{height: (88+StatusBarRpx)+'rpx'}"></view>

			<view class="flex flex-direction flex-wrap align-center benben-flex-layout">
				<view class='flex flex-wrap align-center withdrnew_fd1_0'>
					<text class='withdrnew_fd1_0_c0'>1</text>
					<view class='flex flex-wrap align-center withdrnew_fd1_0_c1'>
					</view>
					<text class='withdrnew_fd1_0_c2'>2</text>
					<view class='flex flex-wrap align-center withdrnew_fd1_0_c3'>
					</view>
					<text class='withdrnew_fd1_0_c4'>3</text>
				</view>
				<text class='withdrnew_fd1_1'>设置提现密码</text>
				<text class='withdrnew_fd1_2'>请设置新支付密码</text>
				<benben-digital-password :box-num='6' mode='password'
					class-name='flex flex align-center justify-center withdrnew_fd1_3' @confirm="checkCodeeyFunc()"
					v-model="newPassword" :init-open.sync="xianshi">
					<template #default="{ content, active, index }">
						<view :key="index" v-if="active"
							class="flex align-center justify-center active-digital-password withdrnew_flex_password_active_fd1_3">
							{{ content }}
						</view>
						<view :key="index" v-else
							class="flex align-center justify-center withdrnew_flex_password_noActive_fd1_3">
							{{ content }}
						</view>
					</template>
				</benben-digital-password>
				<text class='withdrnew_fd1_4'>支付密码为6位数字，用户提现、设置密保、添加银行卡等 操作，可保障资金安全</text>
			</view>




		</view>
	</page-body>
</template>
<script>
	import {
		validate
	} from '@/common/utils/validate.js'

	export default {
		components: {},


		data() {
			return {
				"newPassword": "",
				"xianshi": true,
				"type": "",
				"oldPayPwd": ""
			};
		},
		computed: {

		},
		watch: {},
		onLoad(options) {
			let {
				type,
				oldPayPwd
			} = options
			if (type !== undefined) this.type = type
			if (oldPayPwd !== undefined) this.oldPayPwd = oldPayPwd
		},
		onUnload() {

		},
		onReady() {

		},
		onShow() {

		},
		onHide() {

		},
		onResize() {

		},
		onPullDownRefresh() {

		},
		onReachBottom(e) {

		},
		onPageScroll(e) {

		},
		methods: {
			//校验验证码
			checkCodeeyFunc() {
				// if (this.oldPayPwd == this.newPassword) {
				// 	this.$message.info('旧密码与新密码不能一致');
				// 	return false;
				// }
				this.$urouter.navigateTo(`/pages/riderSet/confiass/confiass?type=${this.type}&newPwd=${this.newPassword}`);
			}
		}
	};
</script>
<style lang="scss" scoped>
	.page {
		width: 100vw;
		overflow-x: hidden;
		min-height: calc(100vh - var(--window-bottom));
		background: #fff;
		background-size: 100% auto;
	}

	.withdrnew_flex_0 {
		background: #fff;
		width: 750rpx;
		height: 88rpx;
		overflow: hidden;
		z-index: 10;
		top: 0rpx;
		background-size: 100% auto !important;
	}

	.withdrnew_fd0_0_c2 {
		padding: 0rpx 0rpx 0rpx 0rpx;
		width: 100rpx;
	}

	.withdrnew_fd0_0_c0_c0 {
		font-size: 36rpx;
		font-weight: 400;
		color: #333;
	}

	.withdrnew_fd0_0_c0 {
		width: 100rpx;
	}

	.withdrnew_fd0_0 {
		padding: 0rpx 32rpx 0rpx 32rpx;
		line-height: 88rpx;
	}

	.withdrnew_fd1_4 {
		text-align: center;
		padding: 0rpx 32rpx 0rpx 32rpx;
		font-size: 24rpx;
		color: rgba(153, 153, 153, 1);
	}

	.withdrnew_flex_password_noActive_fd1_3 {
		border: 1px solid #ccc;
		width: 100rpx;
		height: 100rpx;
	}

	.withdrnew_flex_password_active_fd1_3 {
		border: 1px solid #409EFF;
		width: 100rpx;
		height: 100rpx;
	}

	::v-deep .withdrnew_fd1_3 {
		width: 750rpx;
		height: 160rpx;
	}

	.withdrnew_fd1_2 {
		line-height: 36rpx;
		font-size: 24rpx;
		font-weight: 400;
		color: #333333;
		margin: 40rpx 0rpx 0rpx 0rpx;
	}

	.withdrnew_fd1_1 {
		font-size: 36rpx;
		font-weight: 700;
		color: #333333;
		margin: 64rpx 0rpx 0rpx 0rpx;
	}

	.withdrnew_fd1_0_c4 {
		background: rgba(146, 146, 146, 1);
		line-height: 36rpx;
		font-size: 32rpx;
		font-weight: 500;
		color: #fff;
		border-radius: 50rpx 50rpx 50rpx 50rpx;
		background-size: 100% auto !important;
		padding: 8rpx 16rpx 8rpx 16rpx;
	}

	.withdrnew_fd1_0_c3 {
		background: rgba(146, 146, 146, 1);
		width: 118rpx;
		height: 4rpx;
		border-radius: 0rpx 0rpx 0rpx 0rpx;
	}

	.withdrnew_fd1_0_c2 {
		background: var(--benbenbgColor7);
		line-height: 36rpx;
		font-size: 32rpx;
		font-weight: 500;
		color: #fff;
		border-radius: 50rpx 50rpx 50rpx 50rpx;
		background-size: 100% auto !important;
		padding: 8rpx 16rpx 8rpx 16rpx;
	}

	.withdrnew_fd1_0_c1 {
		background: rgba(184, 36, 65, 1);
		width: 118rpx;
		height: 4rpx;
		border-radius: 0rpx 0rpx 0rpx 0rpx;
	}

	.withdrnew_fd1_0_c0 {
		background: var(--benbenbgColor7);
		line-height: 36rpx;
		font-size: 32rpx;
		font-weight: 500;
		color: var(--benbenFontColor3);
		border-radius: 50rpx 50rpx 50rpx 50rpx;
		background-size: 100% auto !important;
		padding: 8rpx 16rpx 8rpx 16rpx;
	}

	.withdrnew_fd1_0 {
		margin: 143rpx 0rpx 0rpx 0rpx;
	}
</style>
